package com.lottemall.upload.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.List;

/**
 * 上传图片用到的属性类
 *
 * lt:
 *   upload:
 *     baseUrl: http://image.lottemall.com/
 *     allowTypes:
 *       - image/jpeg
 *       - image/png
 *       - image/bmp
 */
@SuppressWarnings("ConfigurationProperties")
@ConfigurationProperties(prefix = "lt.upload") //前缀
@Data
public class UploadProperties {
    private String baseUrl;
    private List<String> allowTypes;
}
